#include<iostream>
#include<algorithm>
#include<vector>
using namespace std; 

int arr[105]; 
int main() {
	int n;
	cin >> n;
	for(int i = 0; i < n; i++) {
		cin >> arr[i];
	}
	sort(arr, arr + n);
	unique(arr, arr + n);
	int size = sizeof(arr) / sizeof(arr[0]);
	for(int i = 0; i < size; i++) {
		cout << arr[i] << " ";
	}
	return 0;
}
